<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            text-align: center;
            font-size: 16px;
        }
    </style>



    <script>
        window.onload = function() {
            var fds = document.body;
            var i = 0;
            setInterval(updateNum, 1000);
            updateNum();

            function updateNum() {
                fds.innerHTML = ++i
            }
        }
    </script>
    </body>

</html>